package com.stone.jms.beans;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

/**
 * Created by stone on 2017/7/28.
 * 消费者
 */
@Component
public class Customer {

    /**
     *
     * @param message 收到的消息
     */
    @JmsListener(destination = "test.queue")
    public void receiveQueue(String message) {
        System.out.println("Customer收到的报文为:" + message);
    }
}
